package university.dropcourse.dto;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;


/**
 * Generated class university.dropcourse.dto.CorsoDto
 */
@XmlRootElement(name="corso")
public class CorsoDto extends Dto implements Serializable {

    private static final long serialVersionUID = 1L;
    
    int cfu;

    String codiceCorso;

    String descrizione;

    Integer docenteId;

    Integer id;

    List<Integer> materialiIds = new ArrayList<Integer>();

    String nome;

    String semestre;

    List<Integer> studentiIds = new ArrayList<Integer>();


    public CorsoDto() { super(); }


    public int getCfu() {
        return this.cfu;
    }

    public void setCfu(int cfu) {
        this.cfu = cfu;
    }

    public String getCodiceCorso() {
        return this.codiceCorso;
    }

    public void setCodiceCorso(String codiceCorso) {
        this.codiceCorso = codiceCorso;
    }

    public String getDescrizione() {
        return this.descrizione;
    }

    public void setDescrizione(String descrizione) {
        this.descrizione = descrizione;
    }

    public Integer getDocenteId() {
        return this.docenteId;
    }

    public void setDocenteId(Integer docenteId) {
        this.docenteId = docenteId;
    }

    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @XmlElementWrapper(name="materiali")
    @XmlElement(name="id")
    public List<Integer> getMaterialiIds() {
        return this.materialiIds;
    }

    public void setMaterialiIds(List<Integer> materialiIds) {
        this.materialiIds = materialiIds;
    }

    public String getNome() {
        return this.nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getSemestre() {
        return this.semestre;
    }

    public void setSemestre(String semestre) {
        this.semestre = semestre;
    }

    @XmlElementWrapper(name="studenti")
    @XmlElement(name="id")
    public List<Integer> getStudentiIds() {
        return this.studentiIds;
    }

    public void setStudentiIds(List<Integer> studentiIds) {
        this.studentiIds = studentiIds;
    }


}